package com.zxm.ssm.service;

import com.github.pagehelper.PageInfo;
import com.zxm.ssm.entity.Inform;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface InformService {
    @Transactional(readOnly = true)
    PageInfo<Inform> findAllInform(int pagNum, int pagSize);


    /*
     * */
    Integer addInform(Inform inform);


    Integer updateInform(Inform inform);


    Integer deleteInformById(Integer id);

    @Transactional(readOnly = true)
    PageInfo<Inform> selectInformAll(int pageNum, int pageSize);

    Inform findInformById(Integer id);
}
